package com.love.marriage.rechargePackageInfo.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.love.marriage.common.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * description:  充值套餐配置表类
 * author:       mybatisPlus
 * createDate: 2024-10-16 22:50:45
 * version:      1.0.0
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("recharge_package_info_t")
@Schema(description = "充值套餐配置表")
public class RechargePackageInfo extends BaseEntity<RechargePackageInfo>{

    @Schema(description = "套餐名称", type = "String", implementation = String.class)
    @TableField("package_name")
    private String packageName;

    @Schema(description = "充值金额", type = "BigDecimal", implementation = BigDecimal.class)
    @TableField("amount")
    private BigDecimal amount;

    @Schema(description = "赠送金额", type = "BigDecimal", implementation = BigDecimal.class)
    @TableField(value = "bonus_amount", updateStrategy = FieldStrategy.IGNORED)
    private BigDecimal bonusAmount;

    @Schema(description = "排序顺序", type = "Integer", implementation = Integer.class)
    @TableField("sort_order")
    private Integer sortOrder;

}
